<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColumnForPresentillness extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('st_medical_presentillness', function (Blueprint $table) {
            $table->addColumn('text', 'adrenal_gland')->after('normal')->comment('高血压肾上腺疾病');
            $table->addColumn('text', 'thyroid')->after('normal')->comment('甲状腺情况');
        });

        Schema::table('st_medical_follow_ups', function (Blueprint $table) {
            $table->addColumn('text', 'adrenal_gland')->after('normal')->comment('高血压肾上腺疾病');
            $table->addColumn('text', 'thyroid')->after('normal')->comment('甲状腺情况');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('st_medical_presentillness', function (Blueprint $table) {
            $table->dropColumn('thyroid');
            $table->dropColumn('adrenal_gland');
        });

        Schema::table('st_medical_follow_ups', function (Blueprint $table) {
            $table->dropColumn('thyroid');
            $table->dropColumn('adrenal_gland');
        });
    }
}
